From: Joan Torres Lopez Date: Wed, 28 Jan 2026 17:01:26 +0000 (+0100) Subject: gdm/util: Set minimum display time for authentication messages X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~39^2~1^2~34 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=72073e008f35f197201e6c38ab506fbe5973fbeb;p=gnome-shell.git gdm/util: Set minimum display time for authentication messages Short messages like "PIN locked" were previously displayed for only 480ms (10 chars × 48ms), making them impossible to read. Ensure all messages are shown for at least 2 seconds. Part-of: --- diff --git a/js/gdm/util.js b/js/gdm/util.js index 88183c7dc..e9262b138 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -43,7 +43,10 @@ export const LOGO_KEY = 'logo'; export const DISABLE_USER_LIST_KEY = 'disable-user-list'; // Give user 48ms to read each character of a PAM message +// or 2 seconds, whichever is longer const USER_READ_TIME = 48; +const USER_READ_TIME_MIN = 2000; + const FINGERPRINT_SERVICE_PROXY_TIMEOUT = 5000; const FINGERPRINT_ERROR_TIMEOUT_WAIT = 15; @@ -250,7 +253,7 @@ export class ShellUserVerifier extends Signals.EventEmitter { return 0; // We probably could be smarter here - return message.length * USER_READ_TIME; + return Math.max(message.length * USER_READ_TIME, USER_READ_TIME_MIN); } finishMessageQueue() {